﻿using Anno.Plugs.HelloWorldService;
using Microsoft.AspNetCore.Mvc;

namespace WebApiAnnoService.Controllers
{
    public class HomeController : Controller
    {
        private readonly AnnoWebApiService annoWebApiService;
        public HomeController(AnnoWebApiService _annoWebApiService)
        {
            annoWebApiService = _annoWebApiService;
        }
        public dynamic Index()
        {
            annoWebApiService.Name = "HomeController"+new Random().Next(0,100);
            return "你好啊！" + annoWebApiService.Name;
        }
    }
}
